package com.peace.hospital.feign.system.service;

import com.peace.hospital.entity.common.Staffinfo;
import com.peace.hospital.entity.system.dto.Dto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;


@FeignClient("system")
public interface ISystemService {
//    @RequestMapping(value = "/patientinformation/add", method = RequestMethod.POST)
//    String addPeopleRegister(@RequestBody RegistrationEntryDto registrationEntryDto);
//
//    @RequestMapping(value = "/patientinformation/delete/{pid}", method = RequestMethod.PATCH)
//    String updatePeopleRegisterByid(@RequestParam("pid") Integer pid);
//
//    @RequestMapping(value = "/patientinformation/select/{date}", method = RequestMethod.GET)
//    String findPeopleRegisterByDate(@RequestParam("date") Date date);


    //首页查询用户
    @RequestMapping(value = "/staffinfo/select", method = {RequestMethod.GET})
    String SelestStaffinfo();


    // 修改用户
    @RequestMapping(value = "/staffinfo/update", method = {RequestMethod.PUT})
    String updateStaffinfo(@RequestBody Dto dto);


    //删除用户
    @RequestMapping(value = "/staffinfo/delect/{staid}", method = {RequestMethod.GET})
    String updateStanstate(@RequestParam("request") HttpServletRequest request, @RequestParam("staid") Integer staid);


    //添加员工
    @RequestMapping(value = "/staffinfo/add", method = RequestMethod.POST)
    String addStaffinfo(@RequestBody Dto dto);


    //多条件搜索员工信息

    @RequestMapping(value = "/staffinfo/search", method = RequestMethod.GET)
    String SearchMessage(@RequestBody Staffinfo staffinfo);

}